//
//  CommentCell.m
//  XDCommonApp
//
//  Created by wanglong8889@126.com on 14-3-28.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "CommentCell.h"
#import "XDHeader.h"
#import "XDTools.h"
@implementation CommentCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        
        
        self.comimgV = [[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 20, 30)];
        self.comLb = [[UILabel alloc]initWithFrame:CGRectMake(width_x(_comimgV)+15, 0, 255, 40+30)];
        self.tcomLb = [[UILabel alloc]initWithFrame:CGRectMake(175+15, 50+15+15, 145, 20)];
        
        _comimgV.image = [UIImage imageNamed:@"search_artist_portal"];
        
        
        _comLb.backgroundColor = [UIColor clearColor];
        //        comLb.text = @"宁： 盼望着，盼望着";
        _comLb.numberOfLines = 4;
        _comLb.contentMode = NSLineBreakByWordWrapping;
        _comLb.font = [UIFont systemFontOfSize:14.0];
        
        self.tcomLb.backgroundColor = [UIColor clearColor];
        //        tcomLb.text = @"昨天";
        self.tcomLb.textColor = [UIColor grayColor];
        self.tcomLb.font = [UIFont systemFontOfSize:13.0];
        
        [self.contentView  addSubview:_comimgV];
        
        
        [self.contentView addSubview:_comLb];
        
        
        [self.contentView addSubview:_tcomLb];
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
